function [ capasOut ] = normalizacionPesos( capas, cantCapas )
%NORMALIZACIONPESOS Summary of this function goes here
%   Detailed explanation goes here

% norma2Pesos = zeros(1,cantCapas-1);
%     
%     for i=1:(cantCapas)-1
%         for j=2:(length(capas{i}(:,1))-1)
%             for k=1:length(capas{i}(j,:))
%                 norma2Pesos(i) = norma2Pesos(i) + capas{i}(j,k)^2;
%             end
%         end
%         norma2Pesos(i) = nthroot(norma2Pesos(i),9);
%     end
%     norma2Pesos
    for i=1:(cantCapas)-1
        for j=2:(length(capas{i}(:,1))-1)
            for k=1:length(capas{i}(j,:))
                if capas{i}(j,k) >= 0.9
                    capas{i}(j,k) = capas{i}(j,k) * 0.9;
                end
            end
        end
    end
    
    capasOut = capas;
    
end

